package com.dick.base.model;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 字典值表
 * <pre>
 * "ID" BIGINT NOT NULL,
 * "CODE" VARCHAR(64) NOT NULL,
 * "CODE_LABEL" VARCHAR(64) NOT NULL,
 * "CODE_VALUE" VARCHAR(128) NOT NULL,
 * "CREATE_TIME" DATETIME(6),
 * "UPDATE_TIME" DATETIME(6),
 * "DELETED" TINYINT DEFAULT 0 NOT NULL,
 * </pre>
 */
@Data
@TableName("BASE_DICT_VALUE")
public class BaseDictValue {
    @TableId(type = IdType.INPUT)
    private Long id;

    private String code;

    private String codeLabel;

    private String codeValue;

    private Long parentId;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;

    @TableLogic
    private Boolean deleted;

    private Integer sortCode;
}
